import java.util.Scanner;

public class Main1005 {
    public static void main(String[] args) {
        Scanner sc =new Scanner(System.in);
        double r=sc.nextDouble();
        double pi=3.1415926;
        double S=pi*r;
        double L=2*pi*r;
        System.out.println(String.format("%.2f",S));
        System.out.println(String.format("%.2f",L ));
    }
}

